This function needs to be called before you can use any of the other Xbox Live stat functions, and simply initialises the required libraries on the system. The "user_id" argument is the raw user ID as returned by the function xboxlive_get_user(), while the "service_config" and "title_id" is the unique ID for your game on the Xbox Live Dev Center.
IMPORTANT! This function is only valid when exporting using the UWP target for the Xbox One and it requires you to have checked the Enable XBox Live option in the UWP Game Options.
xboxlive_stats_setup(user_id, service_config_id, title_id);
Argument Description user_id The ID pointer of the user to check. service_config_id This is the config_id string for the game. title_id The unique ID for your game on the Xbox Dev Center.
N/A
var user = xboxlive_get_user(0); xboxlive_stats_setup(user, "4d61a1aa-61ac-4541-badd-31f91244fea6", $1244FEA6);
The above code initialises the stats system for the given user ID.